﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hardware.Meter
{
    public class MeterParameter
    {
        public bool Used { get; set; }
        public int Type { get; set; }
        public int ComIndex { get; set; }
        public string ComName { get; set; }
        public int BaudIndex { get; set; }
        public int BaudValue { get; set; }
        public Parity parity { get; set; }
        public StopBits stopBits { get; set; }
        public int DataBits { get; set; }
        public int Handler { get; set; }   //当前设备的打开句柄
        public string MeterUnit { get; set; }
        public int CharInterval { get; set; }  //字符间隔 
        public int TotalInterval { get; set; } //总间隔
        public bool IsOpen { get; set; }     //端口连接状态
        public string CustomerStartFlag { get; set; } //自定义仪表参数
        public string CustomerEndFlag { get; set; }  //自定义仪表参数

        public int CustomerStartInterceptNumber { get; set; }
        public int CustomerDataLength { get; set; }
        public int CustomerDataSort { get; set; }  //数据排序

        public string SystemUnit { get; set; }      //用户设置的单位

    }
}
